/*
 * @Author: your name
 * @Date: 2021-03-23 15:08:39
 * @LastEditTime: 2021-04-09 18:55:00
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shop\training-group-5-warehouse\dianshang\src\store\index.js
 */
import Vue from "vue";
import Vuex from "vuex";
import bargain from "./bargain"; //砍价
import { data } from "./BankCardBinding/index";
import login from "./login"; //登录
import live from "./live";//直播
import group from "./group";//拼团

Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    list: [], //高子翔的东西，别动万方
  },
  mutations: {
    //直播商品列表加入购物车
    SET_LIST(state, actions) {
      state.list.unshift(actions);
    }
  },
  actions: {},
  modules: {
    bargain, //砍价
    data, //银行
    login,//登录
    live,//直播
    group,//拼团
  },
});
